﻿using System;
using System.Web.Services.Protocols;

namespace EconomicInformationServiceWcf.ServiceBehaviours
{
    [AttributeUsage(AttributeTargets.Method, AllowMultiple = true)]
    public class EISHeaderAttribute : Attribute
    {
        private readonly string _name;
        private readonly Type _type;

        public EISHeaderAttribute(string name, Type type)
        {
          _name = name;
          _type = type;
          Direction = SoapHeaderDirection.In;
        }

        public string Name
        {
          get { return _name; }
        }

        public Type Type
        {
          get { return _type; }
        }

        public SoapHeaderDirection Direction { get; set; }
    }
}
